#!/bin/bash
VERSION="1.0.0"
COMMIT_ID=$(git rev-parse --short HEAD)
BUILD_TIME=$(date +"%Y-%m-%dT%H:%M:%S%z")

go build -ldflags "\
    -X main.Version=$VERSION \
    -X main.CommitID=$COMMIT_ID \
    -X 'main.BuildTime=$BUILD_TIME'" \
    -o xmind-counter.exe
